package book;

public class Book {
	// 图书编号
	private int bookId;
	// 书名
	private String bookName;
	// 作者
	private String author;
	
	public Book() {
		super();
	}

	public Book(int bookId, String bookName, String author) {
		super();
		this.bookId = bookId;
		this.bookName = bookName;
		this.author = author;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
	
	// 把一个对象的信息返回成一个字符串
	public String toString() {
		return "bookId:" + bookId + ",bookName:" + bookName + ",author:" + author;
	}
}
